from selenium.webdriver.common.by import By
"""
    登录
"""
url = "http://1.15.155.226:8081/zentao/user-login-L3plbnRhby8=.html"
username = By.CSS_SELECTOR, "#account"
password = By.CSS_SELECTOR, "input[type=password]"
login_button = By.CSS_SELECTOR, "#submit"

"""
    新建产品
"""
pd_click=By.CSS_SELECTOR, "#navbar > ul > li:nth-child(2) > a"
add_pd_click=By.CSS_SELECTOR, "#main > div > div > p > a > i"
pd_name_type=By.CSS_SELECTOR, "#namess"
pd_name_code=By.CSS_SELECTOR, "#code"
pd_desc_iframe=By.CSS_SELECTOR,"iframe[class=ke-edit-iframe]"
pd_desc_type=By.CSS_SELECTOR,"body.article-content"
# pd_name_type=By.CSS_SELECTOR, ""
# pd_name_type=By.CSS_SELECTOR, ""
# pd_name_type=By.CSS_SELECTOR, ""
# pd_name_type=By.CSS_SELECTOR, ""
# pd_name_type=By.CSS_SELECTOR, ""


"""
    新建文档
"""
wd_click=By.CSS_SELECTOR,"a[href='/zentao/doc/']"
add_wd_click=By.CSS_SELECTOR,"#createDropdown > button > i"
desc_type=By.CSS_SELECTOR,"a[href='/zentao/doc-create-54-0-html.html']"
link_click=By.CSS_SELECTOR,"#typeurl"
add_file=By.CSS_SELECTOR,"#fileBox > td > div > div > div.file-input-empty > button"